package com.surfilter.modules.role.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.surfilter.modules.role.model.ModuleModel;
import com.surfilter.modules.role.model.RoleModel;
import com.surfilter.modules.role.model.UserModel;

public interface RoleMgr {

	public int addRole(RoleModel model, List<Integer> actions, List<Integer> modules, List<Integer> users,HttpServletRequest request);
	public void chgRole(int roleId, RoleModel model,List<Integer> actions, List<Integer> modules,List<Integer> users,HttpServletRequest request);
	public void delRole(RoleModel model, HttpServletRequest request);
	public List<RoleModel> getRoles(RoleModel model, HttpServletRequest request);
	public boolean delRoles(List<Integer> roleIds);
	public List<ModuleModel> getModulesAndActions(HttpServletRequest request);
	public List<UserModel> getUsersByRoleId(int id);
	public List<UserModel> getExtraUsersByRoleId(int id);
}
